package com.atguigu.szdz.dcsyl.utils;


import com.atguigu.szdz.dcsyl.dao.MapperDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class MapperUtils {
    @Autowired
    private MapperDao mapperDao;

    public List<Map<String, Object>> queryBySql(String sql) {
        return mapperDao.selectList(sql);
    }

    public Integer updataBySql(String sql) {
        return mapperDao.updateTable(sql);
    }
}
